|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jade.mtp.iiop.MessageTransportProtocol
Implementation of fipa.mts.mtp.iiop.std
specification for delivering ACL messages over the OMG IIOP
transport protocol.
| Inner classes inherited from class jade.mtp.InChannel |
InChannel.Dispatcher |
| Constructor Summary | |
MessageTransportProtocol()
|
|
| Method Summary | |
TransportAddress |
activate(InChannel.Dispatcher disp)
Activates an MTP handler for incoming messages on a default address. |
void |
activate(InChannel.Dispatcher disp,
TransportAddress ta)
Activates an MTP handler for incoming messages on a specific address. |
java.lang.String |
addrToStr(TransportAddress ta)
Converts a TransportAddress object into a string
representation. |
void |
deactivate()
Deactivates all the MTP handlers. |
void |
deactivate(TransportAddress ta)
Deactivates the MTP handler listening at a given transport address. |
void |
deliver(java.lang.String addr,
Envelope env,
byte[] payload)
Delivers to the specified address an ACL message, encoded in some concrete message representation, using the given envelope as a transmission header. |
java.lang.String |
getName()
Reads the name of the message transport protocol managed by this MTP. |
TransportAddress |
strToAddr(java.lang.String rep)
Converts a string representing a valid address in this MTP to a TransportAddress object. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public MessageTransportProtocol()
| Method Detail |
public TransportAddress activate(InChannel.Dispatcher disp)
throws MTPException
TransportAddress, corresponding to the
chosen default address.
public void activate(InChannel.Dispatcher disp,
TransportAddress ta)
throws MTPException
ta - A TransportAddress object, representing
the transport address to listen to.
public void deactivate(TransportAddress ta)
throws MTPException
ta - The TransportAddress object the handle to
close is listening to.
public void deactivate()
throws MTPException
public void deliver(java.lang.String addr,
Envelope env,
byte[] payload)
throws MTPException
ta - The transport address to deliver the message to. It
must be a valid address for this MTP.env - The message envelope, containing various fields
related to message recipients, encoding, and timestamping.
public TransportAddress strToAddr(java.lang.String rep)
throws MTPException
TransportAddress object.rep - The string representation of the address.TransportAddress object, created from the
given string.
public java.lang.String addrToStr(TransportAddress ta)
throws MTPException
TransportAddress object into a string
representation.ta - The TransportAddress object.TransportAddress is not a valid address for this
MTP.public java.lang.String getName()
"fipa.mts.mtp".
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||